package com.appcheck.recording.action.impl;

import org.json.JSONException;
import org.json.JSONObject;

import android.view.View;

import com.appcheck.recording.action.AbstractAction;
import com.appcheck.recording.action.ActionConvert;
import com.appcheck.recording.handler.AbstractActionHandler;
import com.appcheck.recording.plugin.AbstractActionConverter;

public class FocusAction implements AbstractAction, ActionConvert {

	private View view;
	private boolean state;
  
	public final String toString(){
		JSONObject localJSONObject = new JSONObject();
		try{
			localJSONObject.put("class", "FocusAction");
			localJSONObject.put("state", this.state);
		}
		catch (JSONException localJSONException) {}
		return localJSONObject.toString();
	}
  
	public final View getView(){
		return this.view;
	}
  
	public final void setView(View view){
		this.view = view;
	}
  
	public final void setState(boolean paramBoolean){
		this.state = paramBoolean;
	}
	@Override
	public final boolean handle(AbstractActionHandler param) {
		
		return param.visit(this);
	}

	@Override
	public void toTestCode(AbstractActionConverter actionConverter) {
		
	}

}
